<template>
  <div class="index">
    <!-- <div>
      <span>
        用户名：
       
      </span>
    </div>-->
    <el-container style="height: 500px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu
          :default-openeds="['1']"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          router
          default-active="/"
        >
          <el-menu-item index="/" style="background:#333">
            <i class="el-icon-setting"></i>
            首页
          </el-menu-item>

          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-message"></i>账号管理
            </template>
            <el-menu-item-group>
              <template slot="title">分组一</template>
              <el-menu-item index="userlist">账号列表</el-menu-item>
              <el-menu-item index="useradd">添加账号</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">
              <i class="el-icon-menu"></i>导航二
            </template>
            <el-menu-item-group>
              <template slot="title">分组一</template>
              <el-menu-item index="2-1">选项1</el-menu-item>
              <el-menu-item index="2-2">选项2</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <router-view></router-view>
      </el-container>
    </el-container>
  </div>
</template>


<script>
export default {
  name: "index",
  methods: {}
};
</script>

<style  scoped>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>